home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / Apps / ScreenSavers / BackSpaceViews / SpheresView.BackModule / SpheresWrap.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-12  |  12.8 KB  |  361 lines

  1. /* SpheresWrap.c generated from SpheresWrap.psw
  2.    by unix pswrap V1.009  Wed Apr 19 17:50:24 PDT 1989
  3.  */
  4.  
  5. #include <dpsclient/dpsfriends.h>
  6. #include <string.h>
  7.  
  8. #line 1 "SpheresWrap.psw"
  9. #line 10 "SpheresWrap.c"
  10. void drawSphereBW(color, radius, dcolor, dx, dy, maxsize)
  11. float color; int radius; float dcolor; float dx; float dy; int maxsize; 
  12. {
  13.   typedef struct {
  14.     unsigned char tokenType;
  15.     unsigned char topLevelCount;
  16.     unsigned short nBytes;
  17.  
  18.     DPSBinObjReal obj0;
  19.     DPSBinObjGeneric obj1;
  20.     DPSBinObjReal obj2;
  21.     DPSBinObjGeneric obj3;
  22.     DPSBinObjGeneric obj4;
  23.     DPSBinObjGeneric obj5;
  24.     DPSBinObjGeneric obj6;
  25.     DPSBinObjGeneric obj7;
  26.     DPSBinObjGeneric obj8;
  27.     DPSBinObjGeneric obj9;
  28.     DPSBinObjGeneric obj10;
  29.     DPSBinObjGeneric obj11;
  30.     DPSBinObjGeneric obj12;
  31.     DPSBinObjGeneric obj13;
  32.     DPSBinObjGeneric obj14;
  33.     DPSBinObjGeneric obj15;
  34.     DPSBinObjGeneric obj16;
  35.     DPSBinObjGeneric obj17;
  36.     DPSBinObjGeneric obj18;
  37.     DPSBinObjGeneric obj19;
  38.     DPSBinObjReal obj20;
  39.     DPSBinObjGeneric obj21;
  40.     DPSBinObjGeneric obj22;
  41.     DPSBinObjGeneric obj23;
  42.     DPSBinObjGeneric obj24;
  43.     DPSBinObjGeneric obj25;
  44.     DPSBinObjGeneric obj26;
  45.     DPSBinObjGeneric obj27;
  46.     DPSBinObjGeneric obj28;
  47.     DPSBinObjGeneric obj29;
  48.     DPSBinObjGeneric obj30;
  49.     DPSBinObjGeneric obj31;
  50.     DPSBinObjGeneric obj32;
  51.     DPSBinObjGeneric obj33;
  52.     DPSBinObjGeneric obj34;
  53.     DPSBinObjGeneric obj35;
  54.     DPSBinObjGeneric obj36;
  55.     DPSBinObjGeneric obj37;
  56.     DPSBinObjGeneric obj38;
  57.     DPSBinObjGeneric obj39;
  58.     DPSBinObjGeneric obj40;
  59.     DPSBinObjGeneric obj41;
  60.     DPSBinObjReal obj42;
  61.     DPSBinObjGeneric obj43;
  62.     DPSBinObjGeneric obj44;
  63.     DPSBinObjGeneric obj45;
  64.     DPSBinObjGeneric obj46;
  65.     DPSBinObjReal obj47;
  66.     DPSBinObjGeneric obj48;
  67.     DPSBinObjGeneric obj49;
  68.     DPSBinObjGeneric obj50;
  69.     DPSBinObjGeneric obj51;
  70.     DPSBinObjReal obj52;
  71.     DPSBinObjGeneric obj53;
  72.     DPSBinObjGeneric obj54;
  73.     char obj55[8];
  74.     char obj56[5];
  75.     char obj57[5];
  76.     char obj58[8];
  77.     } _dpsQ;
  78.   static _dpsQ _dpsF = {
  79.     DPS_DEF_TOKENTYPE, 28, 470,
  80.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: color */
  81.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150},    /* setgray */
  82.     {DPS_LITERAL|DPS_REAL, 0, 0, 1.0},
  83.     {DPS_EXEC|DPS_NAME, 0, 8, 458},    /* setalpha */
  84.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: maxsize */
  85.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: maxsize */
  86.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: radius */
  87.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  88.     {DPS_LITERAL|DPS_INT, 0, 0, 360},
  89.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 5},    /* arc */
  90.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 20},    /* clip */
  91.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66},    /* fill */
  92.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167},    /* stroke */
  93.     {DPS_LITERAL|DPS_NAME, 0, 5, 453},    /* currX */
  94.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: maxsize */
  95.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  96.     {DPS_LITERAL|DPS_NAME, 0, 5, 448},    /* currY */
  97.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: maxsize */
  98.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  99.     {DPS_LITERAL|DPS_NAME, 0, 8, 440},    /* curColor */
  100.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: color */
  101.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  102.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: radius */
  103.     {DPS_LITERAL|DPS_INT, 0, 0, -1},
  104.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  105.     {DPS_EXEC|DPS_ARRAY, 0, 27, 224},
  106.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 72},    /* for */
  107.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 308},    /* initclip */
  108.     {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 410},    /* i */
  109.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62},    /* exch */
  110.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  111.     {DPS_EXEC|DPS_NAME, 0, 8, 440},    /* curColor */
  112.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 150},    /* setgray */
  113.     {DPS_EXEC|DPS_NAME, 0, 5, 453},    /* currX */
  114.     {DPS_EXEC|DPS_NAME, 0, 5, 448},    /* currY */
  115.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 410},    /* i */
  116.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  117.     {DPS_LITERAL|DPS_INT, 0, 0, 360},
  118.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 5},    /* arc */
  119.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66},    /* fill */
  120.     {DPS_LITERAL|DPS_NAME, 0, 5, 453},    /* currX */
  121.     {DPS_EXEC|DPS_NAME, 0, 5, 453},    /* currX */
  122.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: dx */
  123.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1},    /* add */
  124.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  125.     {DPS_LITERAL|DPS_NAME, 0, 5, 448},    /* currY */
  126.     {DPS_EXEC|DPS_NAME, 0, 5, 448},    /* currY */
  127.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: dy */
  128.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1},    /* add */
  129.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  130.     {DPS_LITERAL|DPS_NAME, 0, 8, 440},    /* curColor */
  131.     {DPS_EXEC|DPS_NAME, 0, 8, 440},    /* curColor */
  132.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: dcolor */
  133.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1},    /* add */
  134.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  135.     {'c','u','r','C','o','l','o','r'},
  136.     {'c','u','r','r','Y'},
  137.     {'c','u','r','r','X'},
  138.     {'s','e','t','a','l','p','h','a'},
  139.     }; /* _dpsQ */
  140.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  141.   char pad[3];
  142.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  143.  
  144.   _dpsP[0].val.realVal =
  145.   _dpsP[20].val.realVal = color;
  146.   _dpsP[6].val.integerVal =
  147.   _dpsP[22].val.integerVal = radius;
  148.   _dpsP[52].val.realVal = dcolor;
  149.   _dpsP[42].val.realVal = dx;
  150.   _dpsP[47].val.realVal = dy;
  151.   _dpsP[4].val.integerVal =
  152.   _dpsP[5].val.integerVal =
  153.   _dpsP[14].val.integerVal =
  154.   _dpsP[17].val.integerVal = maxsize;
  155.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,470);
  156.   if (0) *pad = 0;    /* quiets compiler warnings */
  157. }
  158. #line 22 "SpheresWrap.psw"
  159.  
  160. #line 161 "SpheresWrap.c"
  161. void drawSphereCL(red, green, blue, radius, dred, dgreen, dblue, dx, dy, maxsize)
  162. float red; float green; float blue; int radius; float dred; float dgreen; float dblue; float dx; float dy; int maxsize; 
  163. {
  164.   typedef struct {
  165.     unsigned char tokenType;
  166.     unsigned char topLevelCount;
  167.     unsigned short nBytes;
  168.  
  169.     DPSBinObjReal obj0;
  170.     DPSBinObjReal obj1;
  171.     DPSBinObjReal obj2;
  172.     DPSBinObjGeneric obj3;
  173.     DPSBinObjReal obj4;
  174.     DPSBinObjGeneric obj5;
  175.     DPSBinObjGeneric obj6;
  176.     DPSBinObjGeneric obj7;
  177.     DPSBinObjGeneric obj8;
  178.     DPSBinObjGeneric obj9;
  179.     DPSBinObjGeneric obj10;
  180.     DPSBinObjGeneric obj11;
  181.     DPSBinObjGeneric obj12;
  182.     DPSBinObjGeneric obj13;
  183.     DPSBinObjGeneric obj14;
  184.     DPSBinObjGeneric obj15;
  185.     DPSBinObjGeneric obj16;
  186.     DPSBinObjGeneric obj17;
  187.     DPSBinObjGeneric obj18;
  188.     DPSBinObjGeneric obj19;
  189.     DPSBinObjGeneric obj20;
  190.     DPSBinObjGeneric obj21;
  191.     DPSBinObjReal obj22;
  192.     DPSBinObjGeneric obj23;
  193.     DPSBinObjGeneric obj24;
  194.     DPSBinObjReal obj25;
  195.     DPSBinObjGeneric obj26;
  196.     DPSBinObjGeneric obj27;
  197.     DPSBinObjReal obj28;
  198.     DPSBinObjGeneric obj29;
  199.     DPSBinObjGeneric obj30;
  200.     DPSBinObjGeneric obj31;
  201.     DPSBinObjGeneric obj32;
  202.     DPSBinObjGeneric obj33;
  203.     DPSBinObjGeneric obj34;
  204.     DPSBinObjGeneric obj35;
  205.     DPSBinObjGeneric obj36;
  206.     DPSBinObjGeneric obj37;
  207.     DPSBinObjGeneric obj38;
  208.     DPSBinObjGeneric obj39;
  209.     DPSBinObjGeneric obj40;
  210.     DPSBinObjGeneric obj41;
  211.     DPSBinObjGeneric obj42;
  212.     DPSBinObjGeneric obj43;
  213.     DPSBinObjGeneric obj44;
  214.     DPSBinObjGeneric obj45;
  215.     DPSBinObjGeneric obj46;
  216.     DPSBinObjGeneric obj47;
  217.     DPSBinObjGeneric obj48;
  218.     DPSBinObjGeneric obj49;
  219.     DPSBinObjGeneric obj50;
  220.     DPSBinObjGeneric obj51;
  221.     DPSBinObjReal obj52;
  222.     DPSBinObjGeneric obj53;
  223.     DPSBinObjGeneric obj54;
  224.     DPSBinObjGeneric obj55;
  225.     DPSBinObjGeneric obj56;
  226.     DPSBinObjReal obj57;
  227.     DPSBinObjGeneric obj58;
  228.     DPSBinObjGeneric obj59;
  229.     DPSBinObjGeneric obj60;
  230.     DPSBinObjGeneric obj61;
  231.     DPSBinObjReal obj62;
  232.     DPSBinObjGeneric obj63;
  233.     DPSBinObjGeneric obj64;
  234.     DPSBinObjGeneric obj65;
  235.     DPSBinObjGeneric obj66;
  236.     DPSBinObjReal obj67;
  237.     DPSBinObjGeneric obj68;
  238.     DPSBinObjGeneric obj69;
  239.     DPSBinObjGeneric obj70;
  240.     DPSBinObjGeneric obj71;
  241.     DPSBinObjReal obj72;
  242.     DPSBinObjGeneric obj73;
  243.     DPSBinObjGeneric obj74;
  244.     char obj75[4];
  245.     char obj76[4];
  246.     char obj77[4];
  247.     char obj78[5];
  248.     char obj79[5];
  249.     char obj80[8];
  250.     } _dpsQ;
  251.   static _dpsQ _dpsF = {
  252.     DPS_DEF_TOKENTYPE, 36, 634,
  253.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: red */
  254.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: green */
  255.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: blue */
  256.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 157},    /* setrgbcolor */
  257.     {DPS_LITERAL|DPS_REAL, 0, 0, 1.0},
  258.     {DPS_EXEC|DPS_NAME, 0, 8, 622},    /* setalpha */
  259.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: maxsize */
  260.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: maxsize */
  261.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: radius */
  262.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  263.     {DPS_LITERAL|DPS_INT, 0, 0, 360},
  264.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 5},    /* arc */
  265.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 20},    /* clip */
  266.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66},    /* fill */
  267.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 167},    /* stroke */
  268.     {DPS_LITERAL|DPS_NAME, 0, 5, 617},    /* currX */
  269.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: maxsize */
  270.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  271.     {DPS_LITERAL|DPS_NAME, 0, 5, 612},    /* currY */
  272.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: maxsize */
  273.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  274.     {DPS_LITERAL|DPS_NAME, 0, 4, 608},    /* curR */
  275.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: red */
  276.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  277.     {DPS_LITERAL|DPS_NAME, 0, 4, 604},    /* curG */
  278.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: green */
  279.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  280.     {DPS_LITERAL|DPS_NAME, 0, 4, 600},    /* curB */
  281.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: blue */
  282.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  283.     {DPS_LITERAL|DPS_INT, 0, 0, 0},    /* param: radius */
  284.     {DPS_LITERAL|DPS_INT, 0, 0, -1},
  285.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  286.     {DPS_EXEC|DPS_ARRAY, 0, 39, 288},
  287.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 72},    /* for */
  288.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 308},    /* initclip */
  289.     {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 410},    /* i */
  290.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 62},    /* exch */
  291.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  292.     {DPS_EXEC|DPS_NAME, 0, 4, 608},    /* curR */
  293.     {DPS_EXEC|DPS_NAME, 0, 4, 604},    /* curG */
  294.     {DPS_EXEC|DPS_NAME, 0, 4, 600},    /* curB */
  295.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 157},    /* setrgbcolor */
  296.     {DPS_EXEC|DPS_NAME, 0, 5, 617},    /* currX */
  297.     {DPS_EXEC|DPS_NAME, 0, 5, 612},    /* currY */
  298.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 410},    /* i */
  299.     {DPS_LITERAL|DPS_INT, 0, 0, 0},
  300.     {DPS_LITERAL|DPS_INT, 0, 0, 360},
  301.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 5},    /* arc */
  302.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 66},    /* fill */
  303.     {DPS_LITERAL|DPS_NAME, 0, 5, 617},    /* currX */
  304.     {DPS_EXEC|DPS_NAME, 0, 5, 617},    /* currX */
  305.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: dx */
  306.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1},    /* add */
  307.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  308.     {DPS_LITERAL|DPS_NAME, 0, 5, 612},    /* currY */
  309.     {DPS_EXEC|DPS_NAME, 0, 5, 612},    /* currY */
  310.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: dy */
  311.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1},    /* add */
  312.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  313.     {DPS_LITERAL|DPS_NAME, 0, 4, 608},    /* curR */
  314.     {DPS_EXEC|DPS_NAME, 0, 4, 608},    /* curR */
  315.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: dred */
  316.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1},    /* add */
  317.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  318.     {DPS_LITERAL|DPS_NAME, 0, 4, 604},    /* curG */
  319.     {DPS_EXEC|DPS_NAME, 0, 4, 604},    /* curG */
  320.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: dgreen */
  321.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1},    /* add */
  322.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  323.     {DPS_LITERAL|DPS_NAME, 0, 4, 600},    /* curB */
  324.     {DPS_EXEC|DPS_NAME, 0, 4, 600},    /* curB */
  325.     {DPS_LITERAL|DPS_REAL, 0, 0, 0},    /* param: dblue */
  326.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1},    /* add */
  327.     {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51},    /* def */
  328.     {'c','u','r','B'},
  329.     {'c','u','r','G'},
  330.     {'c','u','r','R'},
  331.     {'c','u','r','r','Y'},
  332.     {'c','u','r','r','X'},
  333.     {'s','e','t','a','l','p','h','a'},
  334.     }; /* _dpsQ */
  335.   register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
  336.   char pad[3];
  337.   register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
  338.  
  339.   _dpsP[0].val.realVal =
  340.   _dpsP[22].val.realVal = red;
  341.   _dpsP[1].val.realVal =
  342.   _dpsP[25].val.realVal = green;
  343.   _dpsP[2].val.realVal =
  344.   _dpsP[28].val.realVal = blue;
  345.   _dpsP[8].val.integerVal =
  346.   _dpsP[30].val.integerVal = radius;
  347.   _dpsP[62].val.realVal = dred;
  348.   _dpsP[67].val.realVal = dgreen;
  349.   _dpsP[72].val.realVal = dblue;
  350.   _dpsP[52].val.realVal = dx;
  351.   _dpsP[57].val.realVal = dy;
  352.   _dpsP[6].val.integerVal =
  353.   _dpsP[7].val.integerVal =
  354.   _dpsP[16].val.integerVal =
  355.   _dpsP[19].val.integerVal = maxsize;
  356.   DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,634);
  357.   if (0) *pad = 0;    /* quiets compiler warnings */
  358. }
  359. #line 51 "SpheresWrap.psw"
  360.  
  361.